### Function Description

Quick execution of SQL scripts

### Request Parameters

#### Interface parameters

| Fields            | Type    | Required | Description                                                                                                                                                                                  |
|-------------------|---------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| bk_scope_type     | string  | yes      | Resource scope type. Optional values: biz - Business，biz_set - Business Set                                                                                                                  |
| bk_scope_id       | string  | yes      | Resource scope ID. Corresponds to bk_scope_type, which means business ID or business set ID                                                                                                  |
| bk_biz_id         | long    | yes      | Deprecated. Business ID. This field has been deprecated and replaced by the field bk_scope_type+bk_scope_id                                                                                  |
| task_name         | string  | no       | Custom job name, length cannot exceed 512 characters                                                                                                                                         |
| script_version_id | long    | no       | SQL script version ID                                                                                                                                                                        |
| script_id         | string  | no       | Script id. When script_id is passed in and script_version_id is empty, the online version of the current script is used                                                                      |
| script_content    | string  | no       | Script content Base64. If script_version_id and script_id do not exist, script_content is used. Priority: script_version_id>script_id>script_content                                         |
| timeout           | int     | no       | Script timeout in seconds. Default 7200, value range 1 86400                                                                                                                                 |
| db_account_id     | long    | yes      | Db account ID for SQL execution                                                                                                                                                              |
| target_server     | object  | no       | Target server, see server definition                                                                                                                                                         |
| callback_url      | string  | no       | Callback URL, when the task execution is completed, the JOB will call this URL to inform the task execution result. Callback protocol refer to the callback_protocol component documentation |
| start_task        | boolean | no       | Whether to start the task, default true. If it is false, you can start a task through the operating job instance interface                                                                   |

{% include '_generic_server.md.j2' %}

### Example of request

```json
{
    "bk_scope_type": "biz",
    "bk_scope_id": "1",
    "script_version_id": 1,
    "timeout": 1000,
    "db_account_id": 32,
    "target_server": {
        "dynamic_group_list": [
            {
                "id": "blo8gojho0skft7pr5q0"
            }
        ],
        "host_id_list": [
            101,
            102
        ],
        "topo_node_list": [
            {
                "id": 1000,
                "node_type": "module"
            }
        ]
    }
}
```

### Example of responses

```json
{
    "result": true,
    "code": 0,
    "data": {
        "job_instance_name": "API Quick SQL Execution1524454292038",
        "job_instance_id": 10000,
        "step_instance_id": 10001
    },
    "job_request_id": "xxx"
}
```

### Response Description

{% include '_generic_response.md.j2' %}

##### data

{% include '_generic_response_job_instance.md.j2' %}
